package com.app.biz.service.impl;

import java.util.Date;
import java.util.List;

import cn.hutool.core.util.IdUtil;
import com.app.biz.domain.BizZdgypJc;
import com.app.biz.mapper.BizZdgypJcMapper;
import com.app.biz.service.IBizZdgypJcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 重点工业品调度情况监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class BizZdgypJcServiceImpl implements IBizZdgypJcService
{
    @Autowired
    private BizZdgypJcMapper bizZdgypJcMapper;

    /**
     * 查询重点工业品调度情况监测
     * 
     * @param baseId 重点工业品调度情况监测主键
     * @return 重点工业品调度情况监测
     */
    @Override
    public BizZdgypJc selectBizZdgypJcByBaseId(String baseId)
    {
        return bizZdgypJcMapper.selectBizZdgypJcByBaseId(baseId);
    }

    /**
     * 查询重点工业品调度情况监测列表
     * 
     * @param bizZdgypJc 重点工业品调度情况监测
     * @return 重点工业品调度情况监测
     */
    @Override
    public List<BizZdgypJc> selectBizZdgypJcList(BizZdgypJc bizZdgypJc)
    {
        return bizZdgypJcMapper.selectBizZdgypJcList(bizZdgypJc);
    }

    /**
     * 新增重点工业品调度情况监测
     * 
     * @param bizZdgypJc 重点工业品调度情况监测
     * @return 结果
     */
    @Override
    public int insertBizZdgypJc(BizZdgypJc bizZdgypJc)
    {
        bizZdgypJc.setBaseId(IdUtil.simpleUUID());
        bizZdgypJc.setBaseCreateTime(new Date());
        return bizZdgypJcMapper.insertBizZdgypJc(bizZdgypJc);
    }

    /**
     * 修改重点工业品调度情况监测
     * 
     * @param bizZdgypJc 重点工业品调度情况监测
     * @return 结果
     */
    @Override
    public int updateBizZdgypJc(BizZdgypJc bizZdgypJc)
    {
        return bizZdgypJcMapper.updateBizZdgypJc(bizZdgypJc);
    }

    /**
     * 批量删除重点工业品调度情况监测
     * 
     * @param baseIds 需要删除的重点工业品调度情况监测主键
     * @return 结果
     */
    @Override
    public int deleteBizZdgypJcByBaseIds(String[] baseIds)
    {
        return bizZdgypJcMapper.deleteBizZdgypJcByBaseIds(baseIds);
    }

    /**
     * 删除重点工业品调度情况监测信息
     * 
     * @param baseId 重点工业品调度情况监测主键
     * @return 结果
     */
    @Override
    public int deleteBizZdgypJcByBaseId(String baseId)
    {
        return bizZdgypJcMapper.deleteBizZdgypJcByBaseId(baseId);
    }
}
